package com.supreme.commonmybatis.entity.primary;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName tbl_account
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "biz_account")
public class MBAccount implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    private String accountName;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private Double money;

    /**
     *
     */
    private String createDate;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @TableField(exist = false)
//    @JSONField(serialize = false)
//    @JsonIgnore
    private Date createdAt;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @TableField(exist = false)
//    @JSONField(serialize = false)
//    @JsonIgnore
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}